package com.dc.refactoring._5_简化函数调用._13_ReplaceErrorCodeWithException.oldObject;

public class Test {
    public static void main(String[] args){
        double amount = 100;
        Account account = new Account();
        if (account.withDraw(amount) == -1) {
            // 处理结束流程
        } else {
            // 继续处理其他业务
        }
    }
}
